import re
str1 = "a1b2c3d4g5k6l76p789411"
# \d 代表所有数字【0-9】
print(re.sub(r"\d","*", str1))
